<?php /*a:1:{s:80:"/Users/juyaobin/Desktop/Site/app/useradmin/view/SiteSetting/Site/ApiSetting.html";i:1615904627;}*/ ?>
<html>

<head>
    <meta charset="UTF-8" />
    <meta name="renderer" content="webkit" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport"
        content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>网站后台管理模版</title>
    <script src="/public/static/admin/imgupdate/jquery.min.js"></script>
    <link rel="stylesheet" type="text/css" href="/static/admin/layui/css/layui.css" />
    <link rel="stylesheet" type="text/css" href="/static/admin/css/admin.css" />
    <script src="/public/static/other.js"></script>
    <script src="/public/static/tisp.js"></script>
    <style>
        .div-a {
            float: left;
            width: 49%;
        }

        .div-b {
            float: left;
            width: 49%;
        }
    </style>
</head>

<body>
    <div class="page-content-wrap">
        <form class="layui-form">
            <div class="layui-tab" style="margin: 0">

                <div class="layui-tab-content">
                    <div class="layui-tab-item"></div>
                    <div class="layui-tab-item layui-show">
                        <div class="div-a">
                            <div class="layui-form-item layui-form-text">
                                <label title="阅读漫画一页显示几幅动画在获取下一幅" class="layui-form-label">每页显示：</label>
                                <div class="layui-input-block">

                                    <div style="display: flex;" class="layui-box layui-upload-button">

                                        <div style="width: 100%;">
                                            <input type="text" id="one-page-count" lay-verify="required"
                                                placeholder="阅读漫画一页显示几幅动画在获取下一幅" autocomplete="off"
                                                class="layui-input NumDecText" value="<?php echo htmlentities($pageCount); ?>" />
                                        </div>
                                        <div>
                                            <button type="button" class="layui-btn">
                                                条
                                            </button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="div-b">
                            <div class="layui-form-item layui-form-text">
                                <label title="每次查询章节返回几章数据" class="layui-form-label">章节数量：</label>
                                <div style="display: flex;" class="layui-box layui-upload-button">

                                    <div style="width: 100%;">
                                        <input type="text" id="chapter-count" lay-verify="required"
                                            placeholder="每次查询章节返回几章数据" autocomplete="off" class="layui-input NumDecText"
                                            value="<?php echo htmlentities($chapterCount); ?>" />
                                    </div>
                                    <div>
                                        <button type="button" class="layui-btn">
                                            章
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="div-a">
                            <div class="layui-form-item layui-form-text">
                                <label class="layui-form-label" title="每次查询分类返回几章数据">分类数量：</label>
                                <div class="layui-input-block">
                                    <div style="display: flex;" class="layui-box layui-upload-button">

                                        <div style="width: 100%;">
                                            <input type="text" id="class-count" lay-verify="required"
                                                placeholder="每次查询分类返回几章数据" autocomplete="off"
                                                class="layui-input NumDecText" value="<?php echo htmlentities($classCount); ?>" />
                                        </div>
                                        <div>
                                            <button type="button" class="layui-btn">
                                                条
                                            </button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="div-a">
                            <div class="layui-form-item layui-form-text">
                                <label class="layui-form-label" title="每次搜索漫画显示多少条漫画">漫画数量：</label>
                                <div class="layui-input-block">
                                    <div style="display: flex;" class="layui-box layui-upload-button">
                                        <div style="width: 100%;">
                                            <input type="text" id="comics-count" lay-verify="required"
                                                placeholder="每次搜索漫画显示多少条漫画" autocomplete="off"
                                                class="layui-input NumDecText" value="<?php echo htmlentities($comicsCount); ?>" />
                                        </div>
                                        <div>
                                            <button type="button" class="layui-btn">
                                                条
                                            </button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="div-b">
                            <div class="layui-form-item layui-form-text">
                                <label title="每次查询评论的数量" class="layui-form-label">评论数量：</label>
                                <div class="layui-input-block">
                                    <div style="display: flex;" class="layui-box layui-upload-button">
                                        <div style="width: 100%;">
                                            <input type="text" id="comment-count" lay-verify="required"
                                                placeholder="每次查询评论的数量" autocomplete="off"
                                                class="layui-input NumDecText" value="<?php echo htmlentities($commentCount); ?>" />
                                        </div>
                                        <div>
                                            <button type="button" class="layui-btn">
                                                条
                                            </button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="div-a">
                            <div class="layui-form-item layui-form-text">
                                <label class="layui-form-label" title="每次显示子评论时显示几条数据">子评论数：</label>
                                <div class="layui-input-block">
                                    <div style="display: flex;" class="layui-box layui-upload-button">
                                        <div style="width: 100%;">
                                            <input type="text" id="son-comment-count" lay-verify="required"
                                                placeholder="每次显示子评论时显示几条数据" autocomplete="off"
                                                class="layui-input NumDecText" value="<?php echo htmlentities($sonCommentCount); ?>" />
                                        </div>
                                        <div>
                                            <button type="button" class="layui-btn">
                                                条
                                            </button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item" style="padding-left: 10px">
                <div class="layui-input-block">
                    <button class="layui-btn layui-btn-normal" data-type="pushData" type="button" lay-submit=""
                        lay-filter="formDemo">
                        立即提交
                    </button>

                </div>
            </div>
        </form>
    </div>
    <script src="/static/admin/layui/layui.js" type="text/javascript" charset="utf-8"></script>
    <script src="/static/admin/js/common.js" type="text/javascript" charset="utf-8"></script>
    <script>
        $(".layui-btn-normal").click(function (e) {
            $onePageCount = $("#one-page-count").val();
            $chapterCount = $("#chapter-count").val();
            $classCount = $("#class-count").val();
            $comicsCount = $("#comics-count").val();
            $commentCount = $("#comment-count").val();
            $sonCommentCount = $("#son-comment-count").val();
            requestData(
                "/<?php echo htmlentities($useradmin); ?>/Setting/SiteSetting/SaveApiBasicSetting", {
                "onePageCount": Math.ceil($onePageCount),
                "chapterCount": Math.ceil($chapterCount),
                "classCount": Math.ceil($classCount),
                "comicsCount": Math.ceil($comicsCount),
                "commentCount": Math.ceil($commentCount),
                "sonCommentCount": Math.ceil($sonCommentCount),
            },
                (e) => {
                    if (e.code == 200) {
                        alert('aaaa')
                    } else {
                        ErrorTips(e.code, e.message, e.detail, () => {
                            window.location.reload()
                        });
                    }
                    layer.close(loginTips);
                }
            );
        })
    </script>
    <iframe id="layui-upload-iframe" class="layui-upload-iframe" name="layui-upload-iframe"></iframe>
</body>

</html>